#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <po_hi_task.h>
#include <po_hi_time.h>


void* routine (void* arg)
{
  while (1)
    {
      printf( "bonjour\n" );
      __po_hi_wait_for_next_period (0);
    }
  return NULL;
}

int main (int argc, char* argv[], char** arge)
{
  __po_hi_time_t period;
  period = __po_hi_milliseconds (500);
  __po_hi_create_periodic_task (0, period, __PO_HI_DEFAULT_PRIORITY, routine);
  __po_hi_wait_for_tasks ();
  exit (0);
}
